//package com.test.demo1.service.impl;
//
//import com.test.demo1.bean.Projects;
//import com.test.demo1.service.ProjectsService;
//import org.springframework.ai.tool.ToolCallback;
//import org.springframework.ai.tool.annotation.Tool;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
//@Service
//public class ChatTools  {
//    private final ProjectsService projectsService;
//
//    public ChatTools(ProjectsService projectsService) {
//        this.projectsService = projectsService;
//    }
//
//    @Tool(description = "根据项目名称找到与之匹配的数据")
//    public List<Projects> findData(String projectName) {
//
//        List<Projects> projects = projectsService.queryAll(Projects.builder().projectName(projectName).build());
//
//        return projects;
//    }
//}
